<ul class="nav nav-secondary" >
 	<li class="active" ><a href="#/teach_leave_old">请假历史</a></li>	
	<li><a href="#/teach_leave">请假申请</a></li>

</ul>
	<table class="table" >
	    <thead>
		    <tr>
		    	<th>序号</th>
		    	<th>请假时间</th>
		    	<th>销假日期</th>
		    	<th>原因</th>
		    	<th>状态</th>
		    </tr>
	  	</thead>
	  	<tbody>
		    <tr ng-repeat="leave in leaves">
		    	<td>{{$index+1}}</td>
		    	<td>{{leave.start_time}}到{{leave.end_time}}</td>
		    	<td>{{leave.cancel_time}}</td>
		    	<td>{{leave.content}}</td>
		    	<td class="addbtn">
		    		{{leave.condition}}
		    		
		    		<button ng-show="leave.condition=='申请中'" ng-click="cancel()"class="btn btn-primary">取消</button>
				
					
		    	</td>
		    </tr>
	  	</tbody>
	</table>
	<ul class="pager" style="margin-left:25%">
        <li class="previous"><a href="#">« 上一页</a></li>
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li class="active"><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="###" data-toggle="pager" data-placement="top">...</a></li>
        <li><a href="#">10</a></li>
        <li class="next"><a href="#">下一页 »</a></li>
     </ul>
